DESCRIPTION = "A Robot image with more full-featured + ROS + OpenCV Linux system functionality installed."

LICENSE = "MIT"

inherit core-image

IMAGE_FEATURES += " \
    tools-profile \
    splash \
    ssh-server-dropbear \
    hwcodecs \
"

CORE_IMAGE_EXTRA_INSTALL += " \
    packagegroup-tools-bluetooth \
    packagegroup-fsl-tools-gpu \
    packagegroup-fsl-tools-gpu-external \
    packagegroup-imx-core-tools \
    cryptodev-module \
    cryptodev-tests \
    openssl-bin \
    gmssl-bin \
    imx-test \
    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', ' weston weston-init','', d)} \
"

IMAGE_INSTALL += " \ 
    ${@bb.utils.contains('ROS_DISTRO', 'indigo', 'roslaunch', '', d)} \
    ${@bb.utils.contains('ROS_DISTRO', 'kinetic', 'roslaunch', '', d)} \
    ${@bb.utils.contains('ROS_DISTRO', 'melodic', 'roslaunch', '', d)} \
    ${@bb.utils.contains('ROS_DISTRO', 'crystal', 'ros2launch', '', d)} \
    ${@bb.utils.contains('ROS_DISTRO', 'dashing', 'ros2launch', '', d)} \
    ${@bb.utils.contains('ROS_DISTRO', 'eloquent', 'ros2launch', '', d)} \
"
